#include "WebServlet.h"
void WebServlet::start() {

}
void WebServlet::onLoad(INode *node) {

}
void WebServlet::onMessage(ISession *session,const void *data,int len) {
    for (int index = 0; index < retcode; ++index)
    {
        package.put(buffer[index]);
        if (package.isError())
        {
            isBreak = true;
            break;
        }
        if (package.isBodyOk())
        {
            LogI("Http Content-Size:%d Head:\n%s",package.getBodyLength(),package.dumpHeads().c_str());
            package.parseUrl();
            _handleWebContent(session);
            isBreak = true;
            break;
        }
    }
}

void WebServlet::_handleWebContent(ISession *session)
{

}